package org.looop.chuck.task;

import org.apache.commons.lang.builder.ToStringBuilder;

public class TaskFailedReason {
	private Throwable exception;
	private String failMessage;
	public TaskFailedReason(Throwable exception, String failMessage) {
		super();
		this.exception = exception;
		this.failMessage = failMessage;
	}
	public Throwable getException() {
		return exception;
	}
	public void setException(Throwable exception) {
		this.exception = exception;
	}
	public String getFailMessage() {
		return failMessage;
	}
	public void setFailMessage(String failMessage) {
		this.failMessage = failMessage;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
